package com.example.springboot_demo.demos.web.user_work.Mapper;

import com.example.springboot_demo.demos.web.user_work.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {


    @Select("select * from user")
    List<User> getUsers();

    @Select("select * from user where id = #{id}")
    User getUserInfo(Integer id);
}
